package com.stud.business.qb.domain;

import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.stud.common.annotation.Excel;
import com.stud.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * 学生作业问题对象 q_student_homework_question
 *
 * @author Stud
 * @date 2024-03-08
 */
@Schema(description = "学生作业问题")
@Getter
@Setter
@TableName("q_student_homework_question")
public class QStudentHomeworkQuestion extends BaseEntity{

    @Excel(name = "学生ID")
    @Schema(description = "studentId")
    private Long studentId;

    @Excel(name = "作业ID")
    @Schema(description = "homeworkId")
    private Long homeworkId;

    @Excel(name = "学生作业ID")
    @Schema(description = "studentHomework")
    private Long studentHomework;

    @Excel(name = "题库ID")
    @Schema(description = "bankId")
    private Long bankId;

    @Excel(name = "题目来源")
    @Schema(description = "sourceType")
    private String sourceType;

    @Excel(name = "答案内容")
    @Schema(description = "answerContent")
    private String answerContent;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "startTime")
    private LocalDateTime startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "endTime")
    private LocalDateTime endTime;

    @Excel(name = "批改老师ID")
    @Schema(description = "teacherId")
    private Long teacherId;

    @Excel(name = "是否正确")
    @Schema(description = "correct")
    private Integer correct;

    @Excel(name = "是否通过间隔测试")
    @Schema(description = "passInterval")
    private Integer passInterval;

    @Excel(name = "得分")
    @Schema(description = "score")
    private Long score;

    @Excel(name = "评价")
    @Schema(description = "comment")
    private String comment;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "批改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "reviewTime")
    private LocalDateTime reviewTime;

}
